package com.tianlh.service.design_pattern.Decorator;

/**
 * Created by wb-tianlihui on 2017/11/21.
 */
public abstract class Decorator extends HeroComponent {

    protected HeroComponent component;

    /**
     * 构造方法，传入组件对象
     * @param component 组件对象
     */
    public Decorator(HeroComponent component) {
        this.component = component;
    }

    @Override
    public void Pugong(){
        component.Pugong();
    }
}
